home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 15520 < prev    next >
Encoding:
Text File  |  1996-08-05  |  2.1 KB  |  58 lines

  1. Newsgroups: comp.lang.basic.misc,comp.lang.basic.visual.misc,comp.lang.c,comp.lang.c++,comp.os.ms-windows.apps.comm,comp.os.ms-windows.apps.word-proc,comp.os.ms-windows.programmer.misc,comp.os.ms-windows.programmer.tools.mfc,comp.windows.misc
  2. Path: newsfeed.internetmci.com!iglou!news
  3. From: kbc@iglou.com (Keith Burton)
  4. Subject: Re: Help finding contents of current directory.
  5. X-Nntp-Posting-Host: dp-2-17.iglou.net
  6. Message-ID: <DpFJ8x.DCn@iglou.com>
  7. Sender: news@iglou.com (News Administrator)
  8. Organization: IgLou Internet Services (1-800-436-4456)
  9. X-Newsreader: Forte Agent .99c/32.126
  10. References: <4ho68l$qhi@ruby.digisys.net> <4hrjt1$jpr@news.microsoft.com> <3149D3CC.7D67@gate.net> <4icvkb$ogn@pinta.kolumbus.fi> <4in24g$ota@airdmhor.gen.nz> <827459606snz@tsys.demon.co.uk>
  11. Date: Sat, 6 Apr 1996 07:43:08 GMT
  12.  
  13. Greetings,
  14.  
  15. I've been using the Win32 "FindFirstFile" and "FindNextFile" functions
  16. without any problems.
  17.  
  18. Keith Burton
  19.  
  20. Tom Wheeley <tomw@tsys.demon.co.uk> wrote:
  21.  
  22. >In article <4in24g$ota@airdmhor.gen.nz>
  23. >           gumboot@airdmhor.gen.nz "Simon Hosie" writes:
  24. >
  25. >> Dale Hollon (hollon@gate.net) wrote:
  26. >> > I am trying to get a listing of the files in the current directory. I realize
  27. >>  I will have to use 
  28. >> > stat to determin wether it is a file or a directory.  But how do I find out
  29. >>  what's in the 
  30. >> > directory in the first place.
  31. >> 
  32. >> Tommi Ylikulju:
  33. >> > I use _dos_findfirst and _dos_findnext functions to find out a listing of
  34. >> > files in a specific directory. Check C documention for more info about  
  35. >> > those functions.
  36. >> 
  37. >>   Umm, they're very DOSish functions.. are there not UNIXish functions that
  38. >> do the same thing but are also supported by DOS compilers?
  39. >
  40. >opendir, readdir and closedir
  41. >
  42. >Similar to Findfirst and findnext under dos.
  43. >
  44. >I doubt that you can use a construct directly accross unix/dos; you'll
  45. >probably need some #ifdefs  :|
  46. >
  47. >Maybe DJGPP supports the unix functions as is?  I doubt it, seeing as it is
  48. >an OS call.  We can't expect DOS to be POSIX now, can we :)
  49. >
  50. >.splitbung
  51. >-- 
  52. >* TQ 1.0 * The 'Just So Quotes'.
  53. >Artificial Intelligence: the art of making computers that behave like the 
  54. >ones in movies.
  55. >    -- Bill Bulko
  56.  
  57.  
  58.